python-end-of-defun-function now works correctly when comments are not indented properly.
author=?UTF-8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= <fgallina@cuca>
Thu, 17 May 2012 03:03:36 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fabian@anue.biz>
Thu, 17 May 2012 03:03:36 +0000 (00:03 -0300)
commit1494c402cc3477d4da536f572f7d7a3c5881c439
tree6a7d325440fc99cefbea7ce07fd0cde167629708
parent738ec0c34ffc08e5edf57cf0c3eb8a2c12a7d3d1
python-end-of-defun-function now works correctly when comments are not indented properly.

Calling `end-of-defun' on a python file will now do the correct thing,
even for cases like this:

    def fib(n):
        if n < 2:
    #       base cases
            return n
        else:
            return fib(n - 2) + fib(n - 1)
lisp/progmodes/python.el